<?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new sfTestFunctional(new sfBrowser());

// log in
$browser->post('/login',array('login'=>array('login_name'=>'csaur','password'=>'test')));
$response = $browser->getResponse();
$browser->test()->is($response->getStatuscode(),302);






/*
$browser->
  get('/notes/index')->

  with('request')->begin()->
    isParameter('module', 'notes')->
    isParameter('action', 'index')->
  end()->

  with('response')->begin()->
    isStatusCode(200)->
    checkElement('body', '!/This is a temporary page/')->
  end()
;
*/



